package com.example.lasttrain.common;

/**　アプリ内で使用する定数定義をまとめたクラス　*/
public class Defines {
	
// DB用の定数
	public static final String DATABASE_NAME = "main_database.db";
	public static final int DATABASE_VERSION = 1;

	//　終電情報テーブル用:テーブル名と各カラム名を定義
	public static final String TABLE_NAME_L = "last_train_tbl";
	public static final String FIELD_PATTERN_NAME = "PATTERN_NAME";
	public static final String FIELD_BOARDING_STA = "BOARDING_STA";
	public static final String FIELD_DROPPING_STA = "DROPPING_STA";
	public static final String FIELD_LAST_TIME = "LAST_TIME";
	public static final String FIELD_ALARM_TIME = "ALARM_TIME";
	public static final String FIELD_NOTE = "NOTE";
	public static final String FIELD_CREATE_DATE_L = "CREATE_DATE";
	public static final String FIELD_UPDATE_DATE_L = "UPDATE_DATE";
	public static final String FIELD_DELETE_FLG = "DELETE_FLG";
	public static final String FIELD_ALARM_FLG = "ALARM_FLG";
	
	//　アラーム情報テーブル用:テーブル名と各カラム名を定義
	public static final String TABLE_NAME_A = "alarm_settings_tbl";
	public static final String FIELD_TRAIN_ID = "DATE";
	public static final String FIELD_VIBRATION = "CONTENTS";
	public static final String FIELD_MUSIC_ID = "SUBJECT";
	public static final String FIELD_RING_TIME = "SENDFLG";
	public static final String FIELD_CREATE_DATE_A = "CREATE_DATE";
	public static final String FIELD_UPDATE_DATE_A = "UPDATE_DATE";
	public static final String ALARM_ONOFF = "ALARM_ON";
	public static final String TRAIN_HOUR = "TRAIN_HOUR";
	public static final String TRAIN_MINUTE = "TRAIN_MINUTE";
	public static final String ALARM_TIME = "ALARM_TIME";
	public static final String DATA_ID = "DATA_ID";
	
	// DB登録・更新フラグ
	public static final int REGISTER = 1;
	public static final int UPDATE = 2;

// 各メソッドの成功・失敗等のステータス
	public static final int SUCCESS = 0;
	public static final int ERR = -1;
	
	
// for intent extra data
	public static final String INTENT_DB_NUMBER = "the_DB_number_contained_in_intent";
	
	//　INTENTのための定数
//		// 日付を取得するKEY
//		public static final String KEY_DATE = "date";
//		// メモ帳のサブジェクトを取得する際のKEY
//		public static final String KEY_SUBJECT = "subject";
//		// メモ帳の内容を取得する際のKEY
//		public static final String KEY_CONTENT = "content";

	//　フォーマット系
//		// 日付を整形出力するためのフォーマッター
//		public static SimpleDateFormat sFmt = new SimpleDateFormat("yyyy/MM/dd (E)");
//		// メール送信フラグの扱い
//		public static final Boolean SEND = true;
//		public static final Boolean UNSEND = false;
		

	//　画面系
//		//　送付履歴画面で表示させる文字列
//		public static final String SEND_DATE = ":送付日時：";
	
}
